interface SubmitAssessmentAPIData {
  classes_id: string
  user_answers: string
}

interface SubmitAssessmentAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

/**
 * @description 提交评估试卷
 */
export function submitAssessmentAPI(data: SubmitAssessmentAPIData, token: string) {
  return httpInstance.post<SubmitAssessmentAPIResData, SubmitAssessmentAPIData>(
    '/api/sign/survey_submit',
    data,
    { headers: { token } },
  )
}
